#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 29.Oca.2010

@author: Aşkın Yollu <askin@askin.ws>
'''

from liburl import DownloadThread
import time

dd = DownloadThread("http://packages.pardus.org.tr/pardus-2009/scourge-0.21.1-9-1.pisi")
dd.start()
print("Thread Başladı")
while(dd.percentage() < 100.0):
    time.sleep(0.2)
    print("%%%s" % dd.percentage())
    print("----------------------")
    print("%s" % dd.elapsedTime())

